
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.List, vo.ChapterVO"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>

<link href="css/text.css" rel="stylesheet" type="text/css">


</head>
<body topmargin=0 leftmargin=0 marginwidth="0" marginheight="0">
	<!--주요내용시작 -->
	<s:set name="test" value="all_list.size()"/>
	<input type="hidden" value="<s:property value='#test'/>"/>
	
	
	<s:set name="maxChapter" value="rowTotal"/>
	<input type="hidden" value="<s:property value='#maxChapter'/>" id="maxChapter"/>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td valign="top">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="left" valign="top">
							<table width="100%" id="listT" cellspacing="0" cellpadding="2">
								<tr>
									<td bgcolor="#E5E5E5">
										<table width="100%" cellspacing="0" cellpadding="0">
											<tr>
												<td class="num">순번</td>
												<td class="num">회차</td>
												<td class="num">1번</td>
												<td class="num">2번</td>
												<td class="num">3번</td>
												<td class="num">4번</td>
												<td class="num">5번</td>
												<td class="num">6번</td>
												<td class="bonus">보너스</td>
												<td class="windate">추첨날짜</td>

											</tr>
											<s:iterator var="vo" value="view_list" status="stat">
												<s:url id="viewURL" action="view">
													<s:param name="nowPage" value="vo.chapter" />
												</s:url>
												<s:if test="%{#stat.index%2 == 0}">
													<tr>
														<td class="oddNum"><s:property
																value="rowTotal-((nowPage-1)*blockList+#stat.index)" />
														</td>
														<td class="oddNum">
															<s:a href="%{viewURL}">
																<s:property value="chapter" />
															</s:a></td>
														<td class="oddNum"><s:property value="num1" /></td>
														<td class="oddNum"><s:property value="num2" /></td>
														<td class="oddNum"><s:property value="num3" /></td>
														<td class="oddNum"><s:property value="num4" /></td>
														<td class="oddNum"><s:property value="num5" /></td>
														<td class="oddNum"><s:property value="num6" /></td>
														<td class="oddNum"><s:property value="num7" /></td>
														<td class="oddNum"><s:property value="win_date" /></td>

													</tr>
												</s:if>
												<s:if test="%{#stat.index%2 == 1}">
													<tr>
														<td class="evenNum">
															<s:property value="rowTotal-((nowPage-1)*blockList+#stat.index)" />
														</td>
														<td class="evenNum">
															<s:a href="%{viewURL}">
																<s:property value="chapter" />
															</s:a>
														</td>
														<td class="evenNum"><s:property value="num1" /></td>
														<td class="evenNum"><s:property value="num2" /></td>
														<td class="evenNum"><s:property value="num3" /></td>
														<td class="evenNum"><s:property value="num4" /></td>
														<td class="evenNum"><s:property value="num5" /></td>
														<td class="evenNum"><s:property value="num6" /></td>
														<td class="evenNum"><s:property value="num7" /></td>
														<td class="evenNum"><s:property value="win_date" /></td>

													</tr>
												</s:if>
											</s:iterator>
											<s:if test="list.size()<=0">
												<tr>
													<td bgcolor="#F2F7F9" colspan="5" height="70" align="center">등록된 게시물이 없습니다.</td>
												</tr>
											</s:if>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="center">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="100%" height="5px"></td>
								</tr>
								<tr>
									<td width="100%"><s:property value="pagingCode"
											escape="false" /></td>
								</tr>
								<tr>
									<td width="100%" height="5px"></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

	<!--주요내용끝 -->

</body>
</html>
